import request from '@/utils/request'

// 查询战马列表
export function listHorse(query) {
  return request({
    url: '/system/horse/list',
    method: 'get',
    params: query
  })
}

// 查询战马详细
export function getHorse(id) {
  return request({
    url: '/system/horse/' + id,
    method: 'get'
  })
}

// 新增战马
export function addHorse(data) {
  return request({
    url: '/system/horse',
    method: 'post',
    data: data
  })
}

// 修改战马
export function updateHorse(data) {
  return request({
    url: '/system/horse',
    method: 'put',
    data: data
  })
}

// 删除战马
export function delHorse(id) {
  return request({
    url: '/system/horse/' + id,
    method: 'delete'
  })
}
